import request from './request'
const base = ''

export const postRequest = (url, params) => {
  return request({
    method: 'post',
    url: `${base}${url}`,
    data: params
  })
}

export const getRequest = (url, params) => {
  return request({
    method: 'get',
    url: `${base}${url}`,
    data: params
  })
}

export const putRequest = (url, params) => {
  return request({
    method: 'put',
    url: `${base}${url}`,
    data: params
  })
}

export const deleteRequest = (url, params) => {
  return request({
    method: 'delete',
    url: `${base}${url}`,
    data: params
  })
}
